/**
 * author      : 吴中勤
 * date        : 2018/6/24
 * project     : mybatis
 * description : TODO
 */

package com.deepexi.adapter.converter.sap.order;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SapAdapterOrderLineMapper {

    int insert(@Param("eo") SapAdapterOrderLine eo);

    List<SapAdapterOrderLine> listByMobyOrder(@Param("mobyOrderId") String mobyOrderId);

    void batchInsert(List<SapAdapterOrderLine> lineList);

    void batchDelete(List<String> toDeleteLineList);

    void batchUpdateStockOut(
            @Param("mobyOrderId") String mobyOrderId,
            @Param("stockOutList") List<String> stockOutList,
            @Param("status") String status
    );
}
